import request from '@/utils/request'

// 查询移库查询列表
export function listMigrationQuery(query) {
  return request({
    url: '/wareManagement/migrationQuery/list',
    method: 'get',
    params: query
  })
}

// 查询移库查询详细
export function getMigrationQuery(migrationId) {
  return request({
    url: '/wareManagement/migrationQuery/' + migrationId,
    method: 'get'
  })
}

// 新增移库查询
export function addMigrationQuery(data) {
  return request({
    url: '/wareManagement/migrationQuery',
    method: 'post',
    data: data
  })
}

// 修改移库查询
export function updateMigrationQuery(data) {
  return request({
    url: '/wareManagement/migrationQuery',
    method: 'put',
    data: data
  })
}

// 删除移库查询
export function delMigrationQuery(migrationId) {
  return request({
    url: '/wareManagement/migrationQuery/' + migrationId,
    method: 'delete'
  })
}
